<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  <!-- 这个页面中不要包含有js!!! -->
  </head>  
  <body>
  	<!-- 验证还是jquery-validation好用，这里省事没用 -->
	<form class="auform" id="auForm" method="post">
		<input type="hidden" name="repastId" id="repastId">
		<table class="autable">
			<tr>
				<td class="autd1">美食名称：</td>
				<td class="autd2"><input name="repastWhat" class="easyui-validatebox txt" validType="length[2,10]" required="true"><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">每人价格：</td>
				<td class="autd2"><input name="price" class="easyui-numberbox txt" min="0" precision="2" required="true"><span class="red">*</span></td>
			</tr>
			<c:if test="${empty param.update}">
			<tr>
				<td class="autd1">国家：</td>
				<td class="autd2"><input name="countryId" id="countryId" class="txt" style="width:150px;" required="true"/><span class="red">*</span></td>
			</tr>
			</c:if>
			<tr>
				<td class="autd1">城市：</td>
				<td class="autd2"><input name="cityId" id="cityId" class="txt" style="width:150px;" required="true"/><span class="red">*</span></td>
			</tr>
			<tr>
				<td class="autd1">备注：</td>
				<td class="autd2"><textarea name="remark" class="txtarea"></textarea></td>
			</tr>
			<tr>
				<td class="autd3" colspan="2">
					<a href="#" id="btn-back" onclick="$('#MyPopWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					<a href="#" id="btn-add" onclick="addOrUpdateUser('${param.update}');" class="easyui-linkbutton" iconCls="icon-save">保存</a>
				</td>
			</tr>
		</table>
	</form>
  </body>
</html>
